﻿using Coder.Object2Report;
using Coder.Workflow;
using Fee.Orders;
using Fee.Orders.PreWorkflow;

namespace Fee.IO.Exporters
{
    public class StationWorkActivityExporter : BaseExportor<WorkActivity>
    {
        protected override string SheetName => "站点";

        protected override Report<WorkActivity> CreateReportStructure(RenderBase render)
        {

            var result = new Report<WorkActivity>(render);
            result.Column("站点名称", f => ((DelegateOrderBase)f.ProcessInstance).ConstructionTask.Station.Name);
            result.Column("站点编码", f => ((DelegateOrderBase)f.ProcessInstance).ConstructionTask.Station.Code);
            result.Column("是否同意", f => "是");
            result.Column("处理建议", f => "同意");

            return result;
        }
    }
}